<?php
switch ($type)
{
    case "ask":
        echo '<a href="/' . $user->getSlug() . '" class="name-title">' . $user . '</a> asked: <a href="' . url_for('@question_show?id=' . $question->getId()) . '">"' . $question->getEnquiry() . '"</a>';
        break;
    case "answer":
        echo '<a href="/' . $user->getSlug() . '" class="name-title">' . $user . '</a> answered: <a href="' . url_for('@question_show?id=' . $answer->getQuestionId()) . '">"' . $answer->getQuestion()->getEnquiry() . '"</a>';
        break;
    case "thank":
        echo '<a href="/' . $user->getSlug() . '" class="name-title">' . $user . '</a> thanked <a href="/' . $answer->getDoctor()->getUser()->getSlug() . '" class="name-title">' . $answer->getDoctor()->getUser() . '</a> for answering <a href="' . url_for('@question_show?id=' . $answer->getQuestionId()) . '">' . $answer->getQuestion()->getEnquiry() . '</a>';
        break;
    case "unthank":
        echo '<a href="/' . $user->getSlug() . '" class="name-title">' . $user . '</a> unthanked <a href="/' . $answer->getDoctor()->getUser()->getSlug() . '" class="name-title">' . $answer->getDoctor()->getUser() . '</a> for answering <a href="' . url_for('@question_show?id=' . $answer->getQuestionId()) . '">' . $answer->getQuestion()->getEnquiry() . '</a>';
        break;
   case "answercomment":
        echo '<a href="/' . $user->getSlug() . '" class="name-title">' . $user . '</a> commented: <a href="' . url_for('@question_show?id=' . $answer->getQuestionId()) . '">"' . $answer->getQuestion()->getEnquiry() . '"</a>';
        break;
    case "signup":
        echo '<a href="/' . $user->getSlug() . '" class="name-title">' . $user . '</a> signed up and earned 10 points.';
        break;
    case "signin":
        echo '<a href="/' . $user->getSlug() . '" class="name-title">' . $user . '</a> signed in and earned 2 points.';
        break;
    default:
        echo '';
        break;
}
?>



